package com.dsbj.mp.icardservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 每日健康检查表
 * </p>
 *
 * @author cjw
 * @since 2020-02-10
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("H_P_DAY_PHYSICAL_CONDITION")
public class DayPhysicalCondition implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "ID", type = IdType.UUID)
	private String id;
	
	/**
	 * 身份证号码
	 */
	@TableField("IDCARDNO")
	private String idcardno;
	
	/**
	 * 健康体检日期
	 */
	@TableField("CHECK_TIME")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date checkTime;
	
	/**
	 * 体温
	 */
	@TableField("TEMPERATURE")
	private BigDecimal temperature;
	
	/**
	 * 是否干咳
	 * (0: 否; 1: 是;)
	 */
	@TableField("DRY_COUGH")
	private Integer dryCough;
	
	/**
	 * 干咳是否就诊
	 * (0: 否; 1: 是;)
	 */
	@TableField("COUGH_SEE_DOCTOR")
	private Integer coughSeeDoctor;
	
	/**
	 * 干咳诊断结果
	 */
	@TableField("COUGH_DIAG_RESULT")
	private String coughDiagResult;
	
	/**
	 * 是否胸闷
	 * (0: 否; 1: 是;)
	 */
	@TableField("CHEST_TIGHT")
	private Integer chestTight;
	
	/**
	 * 胸闷是否就诊
	 * (0: 否; 1: 是;)
	 */
	@TableField("CHEST_TIGHT_SEE_DOCTOR")
	private Integer chestTightSeeDoctor;
	
	/**
	 * 胸闷诊断结果
	 */
	@TableField("CHEST_TIGHT_DIAG_RESULT")
	private String chestTightDiagResult;
	
	/**
	 * 是否有其他症状
	 * (0: 否; 1: 是;)
	 */
	@TableField("OTHER_SYMPTOM")
	private Integer otherSymptom;
	
	/**
	 * 具体描述
	 */
	@TableField("SPECIFIC_DES")
	private String specificDes;
	
	/**
	 * 其他症状是否就诊
	 * (0: 否; 1: 是;)
	 */
	@TableField("OTHER_SYMPTOM_SEE_DOCTOR")
	private Integer otherSymptomSeeDoctor;
	
	/**
	 * 其他症状诊断结果
	 */
	@TableField("OTHER_SYMPTOM_DIAG_RESULT")
	private String otherSymptomDiagResult;
	
	/**
	 * 身边是否有发烧者
	 * (0: 否; 1: 是;)
	 */
	@TableField("FEVER_PERSON_AROUND")
	private Integer feverPersonAround;
	
	/**
	 * 与身边发烧者的关系
	 * (家人、同事、其他)
	 */
	@TableField("RELATION_WITH_FEVER_PERSON")
	private String relationWithFeverPerson;
	
	/**
	 * 身边是否有疑似肺炎患者
	 * (0: 否; 1: 是;)
	 */
	@TableField("PNEUMONIA_AROUND")
	private Integer pneumoniaAround;
	
	/**
	 * 与身边疑似肺炎患者的关系
	 * (家人、同事、同小区、其他)
	 */
	@TableField("RELATION_WITH_PNEUMONIA")
	private String relationWithPneumonia;
	
	/**
	 * 与疑似肺炎患者的关系详情
	 */
	@TableField("RELATION_WITH_PNEUMONIA_DES")
	private String relationWithPneumoniaDes;
	
	/**
	 * 在本地或在外地
	 * (苏州、盐城、江苏省内、江苏省外
	 * )
	 */
	@TableField("WHERE_NOW")
	private String whereNow;
	
	/**
	 * 当前所在城市
	 */
	@TableField("LOCATION")
	private String location;
	
	/**
	 * 计划返回时间
	 */
	@TableField("PLAN_RETURN_TIME")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date planReturnTime;
	
	/**
	 * 是否在岗
	 * (0: 否; 1: 是;)
	 */
	@TableField("DUTY_TODAY")
	private Integer dutyToday;
	
	@TableField("REMARK")
	private String remark;
	
	/**
	 * 默认为1
	 */
	@TableField("STATUS")
	private Integer status;
	
	@TableField("CREATE_TIME")
	private Date createTime;
	
	@TableField("CREATE_USER")
	private String createUser;
	
	@TableField("UPDATE_TIME")
	private Date updateTime;
	
	@TableField("UPDATE_USER")
	private String updateUser;
	
	/***
	 *运营商
	 */
	@TableField("OPERATOR")
	private String operator;
	
	
	/***
	 *个人轨迹
	 */
	@TableField("PERSONAL_TRAJECTORY_URL")
	private String personalTrajectoryUrl;
	
	/***
	 *上班交通工具
	 */
	@TableField("VEHICLE_TO_WORK")
	private String vehicleToWork;
	
	/***
	 *问题反馈
	 */
	@TableField("FEEDBACK")
	private String feedback;
	
	/***
	 *个人漫游地
	 */
	@TableField("PERSONAL_ROAMING_PLACE1")
	private String personalRoamingPlace1;
	
	@TableField("PERSONAL_ROAMING_PLACE2")
	private String personalRoamingPlace2;
	
	@TableField("PERSONAL_ROAMING_PLACE3")
	private String personalRoamingPlace3;
	
	@TableField("PERSONAL_ROAMING_PLACE4")
	private String personalRoamingPlace4;
	
	@TableField("PERSONAL_ROAMING_PLACE5")
	private String personalRoamingPlace5;
	
	@TableField("PERSONAL_ROAMING_PLACE6")
	private String personalRoamingPlace6;
	
	@TableField("PHONE_NUMBER")
	private String phoneNumber;
	
	@TableField("UPDATE_TODAY")
	private Integer updateToday;//0 没有更新   1有更新
	
	@TableField("PROVINCE")
	private String province;
	
	@TableField("CITY")
	private String city;
	
	@TableField("DISTRICT")
	private String district;
	
	@TableField("TOWN")
	private String town;
	
	@TableField("STREET")
	private String street;
	
	@TableField("HOUSE_NUM")
	private String houseNum;
	
	/**
	 * 昨天下班或休息日是否外出
	 */
	@TableField("OUT_YESTERDAY")
	private Integer outYesterday;
	
	@TableField("OUT_LOCATION")
	private String outLocation;
	
	@TableField("OUT_LOCATION_DES")
	private String outLocationDes;
	
	@TableField("PERSON_OUT_TOGETHER")
	private String personOutTogether;
	
	@TableField("OUT_TRANSPORT")
	private String outTransport;
	
	@TableField("OUT_TRANSPORT_DES")
	private String outTransportDes;
	
	@TableField("PERSONAL_PROTECT")
	private String personalProtect;
	
	
	
	@TableField(exist = false)
	private String checkTimeStr;
	
	@TableField(exist = false)
	private String photoBase64;
	
}
